package com.sunchen.asc.service.item.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value="办理结果对象",description="办理结果result")
public class ResultVo implements Serializable {

    //private Long id;

    @ApiModelProperty(value="绑定事项",name="itemId")
    @NotNull(message = "不能为空")
    private Long itemId;

    @ApiModelProperty(value="获取方式",name="getType")
    private String getType;

    @ApiModelProperty(value="结果类型",name="type")
    private String type;

    @ApiModelProperty(value="结果说明",name="desc")
    private String desc;

    @ApiModelProperty(value="样本",name="example")
    private String example;

    @ApiModelProperty(value="名称",name="name")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value="送达方式",name="serviceMode")
    private String serviceMode;

    @ApiModelProperty(value="排序",name="sortOrder")
    @NotNull(message = "不能为空")
    private int sortOrder;

    public ResultVo() {
    }

    public ResultVo(Long id, Long itemId, String getType, String type, String desc, String example, String name, String serviceMode, int sortOrder) {
        //this.id = id;
        this.itemId = itemId;
        this.getType = getType;
        this.type = type;
        this.desc = desc;
        this.example = example;
        this.name = name;
        this.serviceMode = serviceMode;
        this.sortOrder = sortOrder;
    }
}
